export const routeModel: Record<Auth.RoleType, AuthRoute.Route[]> = {
  super: [
    {
      name: 'dashboard_analysis',
      path: '/dashboard/analysis',
      component: 'self',
      meta: {
        title: '首页',
        i18nTitle: 'routes.dashboard._value',
        requiresAuth: true,
        keepAlive: true,
        singleLayout: 'basic',
        permissions: ['super', 'admin', 'user'],
        icon: 'mdi:monitor-dashboard',
        order: 1
      }
    },
    {
      name: 'component_table',
      path: '/component/table',
      component: 'self',
      meta: {
        title: '我的订单',
        i18nTitle: 'routes.component.table',
        requiresAuth: true,
        singleLayout: 'basic',
        permissions: ['super', 'admin', 'user'],
        icon: 'mdi:table-large',
        order: 2
      }
    },
    {
      name: 'plugin_charts_echarts',
      path: '/plugin/charts/echarts',
      component: 'self',
      meta: {
        title: '我的收益',
        i18nTitle: 'routes.plugin.charts.echarts',
        requiresAuth: true,
        keepAlive: true,
        singleLayout: 'basic',
        permissions: ['super', 'admin', 'user'],
        icon: 'ant-design:property-safety-outlined',
        order: 3
      }
    },
    {
      name: 'auth-demo',
      path: '/auth-demo',
      component: 'basic',
      children: [
        {
          name: 'auth-demo_permission',
          path: '/auth-demo/permission',
          component: 'self',
          meta: {
            title: '权限切换',
            i18nTitle: 'routes.auth-demo.permission',
            requiresAuth: true,
            icon: 'ic:round-construction'
          }
        },
        {
          name: 'auth-demo_super',
          path: '/auth-demo/super',
          component: 'self',
          meta: {
            title: '超级管理员可见',
            i18nTitle: 'routes.auth-demo.super',
            requiresAuth: true,
            icon: 'ic:round-supervisor-account'
          }
        }
      ],
      meta: {
        title: '权限示例',
        i18nTitle: 'routes.auth-demo._value',
        icon: 'ic:baseline-security',
        order: 5
      }
    },
    {
      name: 'function',
      path: '/function',
      component: 'basic',
      children: [
        {
          name: 'function_tab',
          path: '/function/tab',
          component: 'self',
          meta: {
            title: 'Tab',
            i18nTitle: 'routes.function.tab',
            requiresAuth: true,
            icon: 'ic:round-tab'
          }
        },
        {
          name: 'function_tab-detail',
          path: '/function/tab-detail',
          component: 'self',
          meta: {
            title: 'Tab Detail',
            requiresAuth: true,
            hide: true,
            activeMenu: 'function_tab',
            icon: 'ic:round-tab'
          }
        },
        {
          name: 'function_tab-multi-detail',
          path: '/function/tab-multi-detail',
          component: 'self',
          meta: {
            title: 'Tab Multi Detail',
            requiresAuth: true,
            hide: true,
            multiTab: true,
            activeMenu: 'function_tab',
            icon: 'ic:round-tab'
          }
        }
      ],
      meta: {
        title: '我的数据',
        i18nTitle: 'routes.function._value',
        icon: 'icon-park-outline:all-application',
        order: 6
      }
    },
    {
      name: 'team',
      path: '/team',
      component: 'basic',
      children: [
        // {
        //   name: 'team_designer',
        //   path: '/team/designer',
        //   component: 'self',
        //   meta: {
        //     title: '设计师管理',
        //     i18nTitle: 'routes.team.designer',
        //     requiresAuth: true
        //   }
        // },
        {
          name: 'team_bonus',
          path: '/team/bonus',
          component: 'self',
          meta: {
            title: '设计师佣金',
            i18nTitle: 'routes.team.bonus',
            requiresAuth: true
          }
        },
        // {
        //   name: 'team_orderNum',
        //   path: '/team/orderNum',
        //   component: 'self',
        //   meta: {
        //     title: '单量设计',
        //     i18nTitle: 'routes.team.order',
        //     requiresAuth: true
        //   }
        // },
        {
          name: 'team_distribute',
          path: '/team/distribute',
          component: 'self',
          meta: {
            title: '分单配置',
            i18nTitle: 'routes.team.distribute',
            requiresAuth: true
          }
        },
        {
          name: 'team_auto',
          path: '/team/auto',
          component: 'self',
          meta: {
            title: '自动分单数据',
            i18nTitle: 'routes.team.auto',
            requiresAuth: true
          }
        },
        {
          name: 'team_wang',
          path: '/team/wang',
          component: 'self',
          meta: {
            title: '旺旺配置',
            i18nTitle: 'routes.team.wangwang',
            requiresAuth: true
          }
        },
        {
          name: 'team_switch',
          path: '/team/switch',
          component: 'self',
          meta: {
            title: '分单开关配置',
            i18nTitle: 'routes.team.switch',
            requiresAuth: true
          }
        }
      ],
      meta: {
        title: '团队管理',
        i18nTitle: 'routes.team._value',
        icon: 'ant-design:team-outlined',
        order: 6
      }
    },
    {
      name: 'management',
      path: '/management',
      component: 'basic',
      children: [
        {
          name: 'management_user',
          path: '/management/user',
          component: 'self',
          meta: {
            title: '用户管理',
            i18nTitle: 'routes.management.user',
            requiresAuth: true,
            icon: 'ic:round-manage-accounts'
          }
        }
      ],
      meta: {
        title: '系统管理',
        i18nTitle: 'routes.management._value',
        icon: 'carbon:cloud-service-management',
        order: 9
      }
    },
    {
      name: 'about',
      path: '/about',
      component: 'self',
      meta: {
        title: '个人信息',
        i18nTitle: 'routes.about',
        requiresAuth: true,
        keepAlive: true,
        singleLayout: 'basic',
        icon: 'fluent:book-information-24-regular',
        order: 10
      }
    }
  ],
  admin: [
    {
      name: 'dashboard_analysis',
      path: '/dashboard/analysis',
      component: 'self',
      meta: {
        title: '首页',
        i18nTitle: 'routes.dashboard._value',
        requiresAuth: true,
        keepAlive: true,
        singleLayout: 'basic',
        permissions: ['super', 'admin', 'user'],
        icon: 'mdi:monitor-dashboard',
        order: 1
      }
    },
    {
      name: 'component_table',
      path: '/component/table',
      component: 'self',
      meta: {
        title: '我的订单',
        i18nTitle: 'routes.component.table',
        requiresAuth: true,
        singleLayout: 'basic',
        permissions: ['super', 'admin', 'user'],
        icon: 'mdi:table-large',
        order: 2
      }
    },
    {
      name: 'plugin_charts_echarts',
      path: '/plugin/charts/echarts',
      component: 'self',
      meta: {
        title: '我的收益',
        i18nTitle: 'routes.plugin.charts.echarts',
        requiresAuth: true,
        keepAlive: true,
        singleLayout: 'basic',
        permissions: ['super', 'admin', 'user'],
        icon: 'ant-design:property-safety-outlined',
        order: 3
      }
    },
    {
      name: 'team',
      path: '/team',
      component: 'basic',
      children: [
        // {
        //   name: 'team_designer',
        //   path: '/team/designer',
        //   component: 'self',
        //   meta: {
        //     title: '设计师管理',
        //     i18nTitle: 'routes.team.designer',
        //     requiresAuth: true
        //   }
        // },
        {
          name: 'team_bonus',
          path: '/team/bonus',
          component: 'self',
          meta: {
            title: '设计师佣金',
            i18nTitle: 'routes.team.bonus',
            requiresAuth: true
          }
        },
        // {
        //   name: 'team_orderNum',
        //   path: '/team/orderNum',
        //   component: 'self',
        //   meta: {
        //     title: '单量设计',
        //     i18nTitle: 'routes.team.order',
        //     requiresAuth: true
        //   }
        // },
        {
          name: 'team_distribute',
          path: '/team/distribute',
          component: 'self',
          meta: {
            title: '分单配置',
            i18nTitle: 'routes.team.distribute',
            requiresAuth: true
          }
        },
        {
          name: 'team_auto',
          path: '/team/auto',
          component: 'self',
          meta: {
            title: '自动分单数据',
            i18nTitle: 'routes.team.auto',
            requiresAuth: true
          }
        },
        {
          name: 'team_wang',
          path: '/team/wang',
          component: 'self',
          meta: {
            title: '旺旺配置',
            i18nTitle: 'routes.team.wangwang',
            requiresAuth: true
          }
        },
        {
          name: 'team_switch',
          path: '/team/switch',
          component: 'self',
          meta: {
            title: '分单开关配置',
            i18nTitle: 'routes.team.switch',
            requiresAuth: true
          }
        }
      ],
      meta: {
        title: '团队管理',
        i18nTitle: 'routes.team._value',
        icon: 'ant-design:team-outlined',
        order: 6
      }
    },
    {
      name: 'auth-demo',
      path: '/auth-demo',
      component: 'basic',
      children: [
        {
          name: 'auth-demo_permission',
          path: '/auth-demo/permission',
          component: 'self',
          meta: {
            title: '权限切换',
            i18nTitle: 'routes.auth-demo.permission',
            requiresAuth: true,
            icon: 'ic:round-construction'
          }
        },
        {
          name: 'auth-demo_super',
          path: '/auth-demo/super',
          component: 'self',
          meta: {
            title: '超级管理员可见',
            i18nTitle: 'routes.auth-demo.super',
            requiresAuth: true,
            icon: 'ic:round-supervisor-account'
          }
        }
      ],
      meta: {
        title: '权限示例',
        i18nTitle: 'routes.auth-demo._value',
        icon: 'ic:baseline-security',
        order: 5
      }
    },
    {
      name: 'function',
      path: '/function',
      component: 'basic',
      children: [
        {
          name: 'function_tab',
          path: '/function/tab',
          component: 'self',
          meta: {
            title: 'Tab',
            i18nTitle: 'routes.function.tab',
            requiresAuth: true,
            icon: 'ic:round-tab'
          }
        },
        {
          name: 'function_tab-detail',
          path: '/function/tab-detail',
          component: 'self',
          meta: {
            title: 'Tab Detail',
            requiresAuth: true,
            hide: true,
            activeMenu: 'function_tab',
            icon: 'ic:round-tab'
          }
        },
        {
          name: 'function_tab-multi-detail',
          path: '/function/tab-multi-detail',
          component: 'self',
          meta: {
            title: 'Tab Multi Detail',
            requiresAuth: true,
            hide: true,
            multiTab: true,
            activeMenu: 'function_tab',
            icon: 'ic:round-tab'
          }
        }
      ],
      meta: {
        title: '我的数据',
        i18nTitle: 'routes.function._value',
        icon: 'icon-park-outline:all-application',
        order: 6
      }
    }
  ],
  user: [
    {
      name: 'dashboard_analysis',
      path: '/dashboard/analysis',
      component: 'self',
      meta: {
        title: '首页',
        i18nTitle: 'routes.dashboard._value',
        requiresAuth: true,
        keepAlive: true,
        singleLayout: 'basic',
        permissions: ['super', 'admin', 'user'],
        icon: 'mdi:monitor-dashboard',
        order: 1
      }
    },
    {
      name: 'component_table',
      path: '/component/table',
      component: 'self',
      meta: {
        title: '我的订单',
        i18nTitle: 'routes.component.table',
        requiresAuth: true,
        singleLayout: 'basic',
        permissions: ['super', 'admin', 'user'],
        icon: 'mdi:table-large',
        order: 2
      }
    },
    {
      name: 'function',
      path: '/function',
      component: 'basic',
      children: [
        {
          name: 'function_tab',
          path: '/function/tab',
          component: 'self',
          meta: {
            title: 'Tab',
            i18nTitle: 'routes.function.tab',
            requiresAuth: true,
            icon: 'ic:round-tab'
          }
        },
        {
          name: 'function_tab-detail',
          path: '/function/tab-detail',
          component: 'self',
          meta: {
            title: 'Tab Detail',
            requiresAuth: true,
            hide: true,
            activeMenu: 'function_tab',
            icon: 'ic:round-tab'
          }
        },
        {
          name: 'function_tab-multi-detail',
          path: '/function/tab-multi-detail',
          component: 'self',
          meta: {
            title: 'Tab Multi Detail',
            requiresAuth: true,
            hide: true,
            multiTab: true,
            activeMenu: 'function_tab',
            icon: 'ic:round-tab'
          }
        }
      ],
      meta: {
        title: '我的数据',
        i18nTitle: 'routes.function._value',
        icon: 'icon-park-outline:all-application',
        order: 3
      }
    },
    {
      name: 'about',
      path: '/about',
      component: 'self',
      meta: {
        title: '个人信息',
        i18nTitle: 'routes.about',
        requiresAuth: true,
        keepAlive: true,
        singleLayout: 'basic',
        icon: 'fluent:book-information-24-regular',
        order: 4
      }
    }
  ]
};
